﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace EntityModel
{
    /// <summary>
    /// 考勤表
    /// </summary>
    [Table("C03")]
    public class EM_Attendance:EntityBase
    {
        /// <summary>
        /// 是否全勤
        /// </summary>
        [Required]
        [Column("C001")]
        public bool MyProperty { get; set; }

        /// <summary>
        /// 上学时间
        /// </summary>
        [Column("C002")]
        public DateTime GoSchool{ get; set; }

        /// <summary>
        /// 放学时间
        /// </summary>
        [Column("C003")]
        public DateTime OverSchool { get; set; }

        /// <summary>
        /// 是否请假
        /// </summary>
        [Column("C004")]
        [Required]
        public bool Leave { get; set; }

        /// <summary>
        /// 是否迟到
        /// </summary>
        [Column("C005")]
        [Required]
        public bool Be_Late { get; set; }
    }
}
